<?php 
include('../Connections/KRAPPERCON.php');
$fecha = $_POST['fecha'];
$moned = $_POST['moneda'];
$tc = '';

$sql = "call sp_getTC('".$fecha."','".$moneda."','PEN')";

$res = $mysqli->query($sql);
if ($res){
$res->close();

if ($row=$res->fetch_assoc()){
	$tc = $row['value'];
}

$mysqli->check_result();
}

echo "{ value : '".$tc."'}";

?>